package org.junzerg.pojo;

/**
 * Created by pengjunzhe on 2018/4/23.
 */
public class User {
    private int userId;
    private String username;
    private int age;

    public User(int userId, String username, int age){
        this.userId = userId;
        this.username = username;
        this.age = age;
    }
    @Override
    public String toString(){
        return "{id: " + this.getUserId() + "; "
                + "username: " + this.getUsername() + "; "
                + "age: " + this.getAge() + ";}";
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }
}
